<template>
  <div id="app">
    <Heaer v-if="$store.state.isLogin"></Heaer>
    <div class="main">
      <Nav class="nav" v-if="$store.state.isLogin" ></Nav>
        <router-view/> 
    </div>
  </div>
</template>

<script>
import Nav from '@/components/admin/Nav.vue';
import Heaer from '@/components/admin/header.vue';
export default {
  name: 'App',
  components: {
    Nav,
    Heaer
  }
}
</script>

<style>
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

#app {
  min-height: 100vh;
  background-image: url(/public/login/bgi.jpg);
  background-size: cover;

}

.main {
  display: flex;
  background-color: #fff;
}
</style>
